class ReportModel {
  int code;
  String msg;
  List<ReportData> data;

  ReportModel({this.code, this.msg, this.data});

  ReportModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    if (json['data'] != null) {
      data = new List<ReportData>();
      json['data'].forEach((v) {
        data.add(new ReportData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ReportData {
  int createTime;
  String createUser;
  int updateTime;
  String updateUser;
  String isDel;
  int id;
  int toUid;
  String code;
  String description;
  String remark;
  int uid;

  ReportData(
      {this.createTime,
        this.createUser,
        this.updateTime,
        this.updateUser,
        this.isDel,
        this.id,
        this.toUid,
        this.code,
        this.description,
        this.remark,
        this.uid});

  ReportData.fromJson(Map<String, dynamic> json) {
    createTime = json['createTime'];
    createUser = json['createUser'];
    updateTime = json['updateTime'];
    updateUser = json['updateUser'];
    isDel = json['isDel'];
    id = json['id'];
    toUid = json['toUid'];
    code = json['code'];
    description = json['description'];
    remark = json['remark'];
    uid = json['uid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createTime'] = this.createTime;
    data['createUser'] = this.createUser;
    data['updateTime'] = this.updateTime;
    data['updateUser'] = this.updateUser;
    data['isDel'] = this.isDel;
    data['id'] = this.id;
    data['toUid'] = this.toUid;
    data['code'] = this.code;
    data['description'] = this.description;
    data['remark'] = this.remark;
    data['uid'] = this.uid;
    return data;
  }
}
